package com.ljj.consumer.client;

import com.ljj.consumer.config.FeignConfig;
import com.ljj.consumer.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value="user-service",fallback = UserClientFallback.class,configuration = FeignConfig.class)
public interface UserClient {
    @GetMapping("/user/get/{id}")
    String queryById(@PathVariable("id") Long id);
}
